package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * 图文规则对象 text_rule
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("图文规则-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "text_rule")
public class TextRuleEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 规则名称
	 */
	@ApiModelProperty("规则名称")
	private String trName;

	/**
	 * 交互数
	 */
	@ApiModelProperty("交互数")
	private Integer trRound;

	/**
	 * 服务类型 (RuleTypeEnum 01-普通规则 02-义诊规则 )
	 */
	@ApiModelProperty("服务类型 (RuleTypeEnum 01-普通规则 02-义诊规则 )")
	private String trType;

	/**
	 * 是否默认
	 */
	@ApiModelProperty("是否默认")
	private String isDefault;

	/**
	 * 人次(义诊)
	 */
	@ApiModelProperty("人次(义诊)")
	private Integer manTime;

	/**
	 * 剩余人次(人次)
	 */
	@ApiModelProperty("剩余人次(人次)")
	private Integer lastManTime;

	public interface Add{}

	public interface Update{}

}
